Skip to content

docs(ui): note content controls in entityAt hit types (SD-3313)#3573

Merged
caio-pizzol merged 1 commit into
mainfrom
caio/sd-3313-hittest-docs
May 29, 2026
Merged

docs(ui): note content controls in entityAt hit types (SD-3313)#3573
caio-pizzol merged 1 commit into
mainfrom
caio/sd-3313-hittest-docs

Conversation

@caio-pizzol
Copy link
Copy Markdown
Contributor

A small docs/comment correction. ui.viewport.entityAt (and contextAt, which composes it) return content-control hits - ViewportEntityHit includes { type: 'contentControl', scope?, tag? }, emitted from data-sdt-id in entity-at.ts - but the entityAt JSDoc still said the supported hit types are only comment and trackedChange. Corrects the list and adds data-sdt-id to the painter data-attribute examples so the guidance matches what the helper actually returns.

Comment-only; no behavior change.

The entityAt JSDoc said the supported hit types are comment and trackedChange,
but content controls are returned too: ViewportEntityHit includes
{ type: 'contentControl', scope?, tag? }, emitted from data-sdt-id (entity-at.ts).
Correct the supported-types list and add data-sdt-id to the painter
data-attribute examples.
@caio-pizzol caio-pizzol requested a review from a team as a code owner May 29, 2026 17:40
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 29, 2026

SD-3313

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cubic analysis

No issues found across 1 file

Linked issue analysis

Linked issue: SD-3313: docs: correct pointer hit-testing comments to include content controls

Status Acceptance criteria Notes
JSDoc for entityAt lists contentControl as a supported hit type and notes it carries scope and tag The diff replaces the sentence that previously listed only comment and trackedChange with a paragraph that includes 'contentControl' and mentions 'scope' and 'tag'. This directly addresses the issue's core request to correct the comments.
Documentation/examples reference the painter data-attribute `data-sdt-id` so docs match actual returned hits The diff adds `data-sdt-id` to the earlier paragraph listing data attributes and the PR description says painter data-attribute examples were updated to include it.

Tip: cubic could auto-approve low-risk PRs like this, if it thinks it's safe to merge. Learn more

Re-trigger cubic

@caio-pizzol caio-pizzol merged commit 1c70b9b into main May 29, 2026
36 checks passed
@caio-pizzol caio-pizzol deleted the caio/sd-3313-hittest-docs branch May 29, 2026 17:44
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 29, 2026

🎉 This PR is included in superdoc-cli v0.15.0

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 29, 2026

🎉 This PR is included in superdoc-sdk v1.14.0

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 29, 2026

🎉 This PR is included in @superdoc-dev/mcp v0.10.0

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 29, 2026

🎉 This PR is included in superdoc v1.38.0

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 29, 2026

🎉 This PR is included in @superdoc-dev/react v1.9.0

The release is available on GitHub release

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented May 29, 2026

🎉 This PR is included in vscode-ext v2.10.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants